package com.gb.demand.common.api;

/**
 * @author wengjiangle
 * @date 2020/7/6
 */
public enum ResultCode implements IResultCode {
    SUCCESS(200, "操作成功"),
    FAILURE(400, "业务异常");


    final int code;
    final String msg;

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.msg;
    }

    private ResultCode(final int code, final String msg) {
        this.code = code;
        this.msg = msg;
    }
}
